gtk: add annotations for some GtkRadio* constructors
authorTorsten Schönfeld <kaffeetisch@gmx.de>
Sat, 15 Oct 2011 17:18:52 +0000 (19:18 +0200)
committerTorsten Schönfeld <kaffeetisch@gmx.de>
Sun, 6 Nov 2011 15:50:57 +0000 (16:50 +0100)
Since constructors like gtk_radio_button_new_from_widget take an
instance of their type as the first argument, the gi scanner interprets
them as methods.

https://bugzilla.gnome.org/show_bug.cgi?id=661858

gtk/gtkradiobutton.c
gtk/gtkradiomenuitem.c
gtk/gtkradiotoolbutton.c

index 73f11c678b31e7398d90a79c0f4fb5292d8e9f57..c835ae027e8b4a14aa99333326d75b0a299c1caf 100644 (file)
@@ -483,7 +483,7 @@ gtk_radio_button_new_with_mnemonic (GSList      *group,
 }
 
 /**
- * gtk_radio_button_new_from_widget:
+ * gtk_radio_button_new_from_widget: (constructor)
  * @radio_group_member: (allow-none): an existing #GtkRadioButton.
  *
  * Creates a new #GtkRadioButton, adding it to the same group as
index a38f667e4dd40eb9f833d315a02620b671495761..d64a3c428587818a0a7636c715c439301cee02a1 100644 (file)
@@ -298,7 +298,7 @@ gtk_radio_menu_item_new_with_mnemonic (GSList *group,
 }
 
 /**
- * gtk_radio_menu_item_new_from_widget:
+ * gtk_radio_menu_item_new_from_widget: (constructor)
  * @group: An existing #GtkRadioMenuItem
  *
  * Creates a new #GtkRadioMenuItem adding it to the same group as @group.
@@ -321,7 +321,7 @@ gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group)
 }
 
 /**
- * gtk_radio_menu_item_new_with_mnemonic_from_widget:
+ * gtk_radio_menu_item_new_with_mnemonic_from_widget: (constructor)
  * @group: An existing #GtkRadioMenuItem
  * @label: the text of the button, with an underscore in front of the
  *         mnemonic character
@@ -351,7 +351,7 @@ gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
 }
 
 /**
- * gtk_radio_menu_item_new_with_label_from_widget:
+ * gtk_radio_menu_item_new_with_label_from_widget: (constructor)
  * @group: an existing #GtkRadioMenuItem
  * @label: the text for the label
  *
index 75fbcd2d3566bf69cfdc2ce1df12fd8a3c90405c..f56e2cbb0033961b4f40d1ad1b503ca70d6a7631 100644 (file)
@@ -184,7 +184,7 @@ gtk_radio_tool_button_new_from_stock (GSList      *group,
 }
 
 /**
- * gtk_radio_tool_button_new_from_widget:
+ * gtk_radio_tool_button_new_from_widget: (constructor)
  * @group: (allow-none): An existing #GtkRadioToolButton, or %NULL
  *
  * Creates a new #GtkRadioToolButton adding it to the same group as @gruup
@@ -207,7 +207,7 @@ gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group)
 }
 
 /**
- * gtk_radio_tool_button_new_with_stock_from_widget:
+ * gtk_radio_tool_button_new_with_stock_from_widget: (constructor)
  * @group: (allow-none): An existing #GtkRadioToolButton.
  * @stock_id: the name of a stock item
  *